
package com.jf.cloud.product.mapper;

import com.jf.cloud.product.dto.TakeStockDTO;
import com.jf.cloud.product.model.TakeStock;
import com.jf.cloud.product.vo.TakeStockExcelVO;
import com.jf.cloud.product.vo.TakeStockVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 *
 * @author zz
 * @date 2022-06-22 16:57:27
 */
public interface TakeStockMapper {

    /**
     * 获取列表
     * @return 列表
     */
    List<TakeStock> list();

    /**
     * 根据id获取
     *
     * @param takeStockId id
     * @return 
     */
    TakeStock getByTakeStockId(@Param("takeStockId") Long takeStockId);

    /**
     * 保存
     * @param takeStock 
     */
    void save(@Param("takeStock") TakeStock takeStock);

    /**
     * 更新
     * @param takeStock 
     */
    void update(@Param("takeStock") TakeStock takeStock);

    /**
     * 根据id删除
     * @param takeStockId
     */
    void deleteById(@Param("takeStockId") Long takeStockId);

    /**
     * 通过参数分页查找
     * @param lang
     * @param takeStockDTO
     */
    List<TakeStockVO> pageByParam(@Param("lang") Integer lang, @Param("takeStockDTO") TakeStockDTO takeStockDTO);

    /**
     * 获取实物盘点导出数据
     * @param takeStockDTO
     * @param lang
     * @return
     */
    List<TakeStockExcelVO> listTakeStockExportData(@Param("takeStockDTO") TakeStockDTO takeStockDTO, @Param("lang")Integer lang);
}
